/*
 * LoginFrame.java
 *
 * Created on Jan 10, 2012, 3:12:08 PM
 */
package kernel_gui.gui.generic.graphic;

import java.awt.AWTError;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Toolkit;

import kernel_gui.gui.generic.BackGroundPanel;


/**
 *
 * @author Yoyo
 */
public abstract class ControlPanelMenuFrame extends kernel_gui.gui.generic.MillionaireFrame {

    /**
	 * 
	 */
	private static final long serialVersionUID = -4201816718322885023L;
	
	/** Creates new form LoginFrame */
    public ControlPanelMenuFrame() {
    	super(false);
        initComponents();
    }

    private void initComponents() {

        LayeredPane = new javax.swing.JLayeredPane();
        MainPanel = new javax.swing.JPanel();
        TopHeaderLabel = new javax.swing.JLabel();
        ButtonHeaderLabel = new javax.swing.JLabel();
        MoviesButton = new javax.swing.JButton();
        ActorsButton = new javax.swing.JButton();
        DirectorsButton = new javax.swing.JButton();
        CountriesButton = new javax.swing.JButton();
        GenresButton = new javax.swing.JButton();
        jSeparator2 = new javax.swing.JSeparator();
        UsersButton = new javax.swing.JButton();
        QuestionsButton = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JSeparator();
        backButton = new javax.swing.JButton();
        jSeparator3 = new javax.swing.JSeparator();
        ImportButton = new javax.swing.JButton();

        /* My init code */
    	int frameWidth = 150;
    	int frameHeight = 410;
    	this.setBounds(new Rectangle(new Dimension(frameWidth, frameHeight)));
    	this.setIconImage(new javax.swing.ImageIcon("images/Green-Dollar-icon.png").getImage());
    	LayeredPane.setOpaque(false);
    	setResizable(false);
    	try{
	    	Toolkit tk = Toolkit.getDefaultToolkit();
	    	int framePosWidth = tk.getScreenSize().width / 2 - frameWidth / 2;
	    	int framePosHeight = tk.getScreenSize().height / 2 - frameHeight / 2;
	    	Point p = new Point(framePosWidth, framePosHeight);
	    	this.setLocation(p);
		}catch(AWTError e){
			/*Nothing to do*/
		}
    	BGPanel = new BackGroundPanel(frameWidth, frameHeight);
        MainPanel = new BackGroundPanel(frameWidth, frameHeight);
    	/* end */

        TopHeaderLabel.setFont(new java.awt.Font("Tahoma", 1, 26)); // NOI18N
        TopHeaderLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        TopHeaderLabel.setText("Control");

        ButtonHeaderLabel.setFont(new java.awt.Font("Tahoma", 1, 26));
        ButtonHeaderLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        ButtonHeaderLabel.setText("Panel");

        MoviesButton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        MoviesButton.setText("Movies");
        MoviesButton.setOpaque(false);
        MoviesButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MoviesButtonActionPerformed(evt);
            }
        });

        ActorsButton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        ActorsButton.setText("Actors");
        ActorsButton.setOpaque(false);
        ActorsButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ActorsButtonActionPerformed(evt);
            }
        });

        DirectorsButton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        DirectorsButton.setText("Directors");
        DirectorsButton.setOpaque(false);
        DirectorsButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                DirectorsButtonActionPerformed(evt);
            }
        });

        CountriesButton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        CountriesButton.setText("Countries");
        CountriesButton.setOpaque(false);
        CountriesButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CountriesButtonActionPerformed(evt);
            }
        });

        GenresButton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        GenresButton.setText("Genres");
        GenresButton.setOpaque(false);
        GenresButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                GenresButtonActionPerformed(evt);
            }
        });

        UsersButton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        UsersButton.setText("Users");
        UsersButton.setOpaque(false);
        UsersButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UsersButtonActionPerformed(evt);
            }
        });

        QuestionsButton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        QuestionsButton.setText("Questions");
        QuestionsButton.setOpaque(false);
        QuestionsButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                QuestionsButtonActionPerformed(evt);
            }
        });

        backButton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        backButton.setText("Back");
        backButton.setOpaque(false);
        backButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BackButtonActionPerformed(evt);
            }
        });

        ImportButton.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        ImportButton.setText("Import");
        ImportButton.setOpaque(false);
        ImportButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ImportButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout MainPanelLayout = new javax.swing.GroupLayout(MainPanel);
        MainPanel.setLayout(MainPanelLayout);
        MainPanelLayout.setHorizontalGroup(
            MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MainPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(MainPanelLayout.createSequentialGroup()
                        .addGroup(MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(MoviesButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                            .addComponent(ActorsButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                            .addComponent(DirectorsButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                            .addComponent(CountriesButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                            .addComponent(GenresButton, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                            .addComponent(TopHeaderLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                            .addComponent(ButtonHeaderLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                            .addComponent(UsersButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                            .addComponent(QuestionsButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                            .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                            .addComponent(ImportButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MainPanelLayout.createSequentialGroup()
                        .addGroup(MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(backButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                            .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE))
                        .addContainerGap())))
        );
        MainPanelLayout.setVerticalGroup(
            MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MainPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(TopHeaderLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ButtonHeaderLabel)
                .addGap(18, 18, 18)
                .addComponent(MoviesButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ActorsButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(DirectorsButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(CountriesButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(GenresButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(UsersButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(QuestionsButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ImportButton)
                .addGap(7, 7, 7)
                .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(backButton, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(13, 13, 13))
        );

        MainPanel.setBounds(0, 0, 150, 410);
        LayeredPane.add(MainPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout BGPanelLayout = new javax.swing.GroupLayout(BGPanel);
        BGPanel.setLayout(BGPanelLayout);
        BGPanelLayout.setHorizontalGroup(
            BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 151, Short.MAX_VALUE)
            .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(LayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE))
        );
        BGPanelLayout.setVerticalGroup(
            BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 381, Short.MAX_VALUE)
            .addGroup(BGPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(LayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 381, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(BGPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(BGPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }

    protected abstract void MoviesButtonActionPerformed(java.awt.event.ActionEvent evt);

    protected abstract void ActorsButtonActionPerformed(java.awt.event.ActionEvent evt);                

    protected abstract void DirectorsButtonActionPerformed(java.awt.event.ActionEvent evt);  

    protected abstract void CountriesButtonActionPerformed(java.awt.event.ActionEvent evt);

    protected abstract void BackButtonActionPerformed(java.awt.event.ActionEvent evt);

    protected abstract void GenresButtonActionPerformed(java.awt.event.ActionEvent evt);

    protected abstract void UsersButtonActionPerformed(java.awt.event.ActionEvent evt);

    protected abstract void QuestionsButtonActionPerformed(java.awt.event.ActionEvent evt);                                     

    protected abstract void ImportButtonActionPerformed(java.awt.event.ActionEvent evt);

    
    protected javax.swing.JButton ActorsButton;
    protected javax.swing.JPanel BGPanel;
    protected javax.swing.JLabel ButtonHeaderLabel;
    protected javax.swing.JButton CountriesButton;
    protected javax.swing.JButton DirectorsButton;
    protected javax.swing.JButton GenresButton;
    private javax.swing.JButton ImportButton;
    protected javax.swing.JLayeredPane LayeredPane;
    protected javax.swing.JPanel MainPanel;
    protected javax.swing.JButton MoviesButton;
    protected javax.swing.JButton QuestionsButton;
    protected javax.swing.JLabel TopHeaderLabel;
    protected javax.swing.JButton UsersButton;
    protected javax.swing.JButton backButton;
    protected javax.swing.JSeparator jSeparator1;
    protected javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
}
